import request from "@/utils/request.js"

export const login = (data) => {
	return request({
			url: '/deviceUser/login',
			method: 'post',
			data
	})
}
export const register = (data) => {
	return request({
			url: '/deviceUser/register',
			method: 'post',
			data
	})
}
export const updateUserInfo = (data) => {
	return request({
			url: '/user/updateUserInfo',
			method: 'put',
			data
	})
}
export const getUserInfo = (data) => {
	return request({
			url: '/user/getUserInfo',
			method: 'get',
			data
	})
}